package ylsb.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import ylsb.model.Tiwaizhenduan;
import ylsb.model.TiwaizhenduanExample;

public interface TiwaizhenduanMapper {

    List<Map<String, Object>> findPinguiResult(@Param("xiangmuid") String mmxiangmuId);

    List<Map<String, Object>> findDaochuPinzhongAll(@Param("xiangmuid") String ppxiangmuId);

    List<Map<String, Object>> findPinpaiResultByPinzhong(@Param("xiangmuid")String ppxiangmuId,@Param("userid")String ppuserId,@Param("pinzhong")String ppPinzhongOne);

    List<Map<String, Object>> findPinpaiByPinzhong(@Param("pinzhong")String ppPinzhongOne);

    List<Map<String, Object>> findPinzhongAll(@Param("xiangmuid") String ppxiangmuId,  @Param("startindex") int ppStartIndex, @Param("pagesize") int ppPageSize);

    Object getTiwaizhenduanlist(@Param("xiangmuid") String ppxiangmuId,@Param("startindex") int ppStartIndex, @Param("pagesize") int ppPageSize);

    List<Map<String, Object>> selectByXiangmuId(@Param("xiangmuid") String ppxiangmuId, @Param("startindex") int ppStartIndex, @Param("pagesize") int ppPageSize);

    List<Map<String, Object>> findPinzhongAndPinpaiByXiangmuId(@Param("xiangmuid") String mmxiangmuId);

    int countByExample(TiwaizhenduanExample example);

    int deleteByExample(TiwaizhenduanExample example);

    int insert(Tiwaizhenduan record);

    int insertSelective(Tiwaizhenduan record);

    List<Tiwaizhenduan> selectByExample(TiwaizhenduanExample example);

    int updateByExampleSelective(@Param("record") Tiwaizhenduan record, @Param("example") TiwaizhenduanExample example);

    int updateByExample(@Param("record") Tiwaizhenduan record, @Param("example") TiwaizhenduanExample example);
}